@import '@/app/styles/variables';

.tabs {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  align-self: stretch;
  width: 100%;
}

.tabs_header:after,
.tab:after,
.active:after {
  border-radius: 1000px;
  position: absolute;
  z-index: 1;
  bottom: 0;
  left: 0;
  content: '';
  width: 100%;
  height: 4px;
}

.title {
  padding-top: 2px;
}

.tabs_header {
  display: flex;
  position: relative;
  &:after {
    z-index: 0;
    background: #e1e1e1;
  }
  .disabledHeader {
    background: #f3f3f3;
    &:after {
      z-index: 0;
      background: #f3f3f3;
    }
  }
}

.disabledHeader {
  display: flex;
  position: relative;
  &:after {
    z-index: 0;
    background: #f3f3f3;
  }
}

.mobile_arrow {
  display: none;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding-top: 1px;
  svg {
    transform: scale(1.5) rotate(-0.25turn);
  }
}

.tab {
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  all: unset;
  position: relative;
  box-sizing: border-box;
  cursor: pointer;
  display: flex;
  padding: 12px 48px;
  justify-content: center;
  align-items: flex-start;
  border-radius: 1000px;
  color: #7d7d7d;
  gap: 8px;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 22px; /* 137.5% */
  &:hover:not(.active) {
    color: #515151;
    &:after {
      z-index: 1;
      background: #dee9fb;
    }
  }
  &:disabled {
    cursor: default;
    background: transparent;
    opacity: 0.7;
    color: #e1e1e1;
    &:hover {
      color: #e1e1e1;
    }
  }
}

.active {
  color: #337cec;
  &:after {
    z-index: 1;
    background: #337cec;
  }
}

.content {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.modal_title {
  overflow: hidden;
  color: var(--simple-night, #000);
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 24px;
  font-size: 24px;
  font-style: normal;
  font-weight: 500;
  line-height: 30px; /* 125% */
}

@include media(sm) {
  .tabs {
    gap: 8px;
  }
  .tabs_header {
    &:after {
      content: unset;
    }
  }
  .tab {
    font-size: 14px;
    line-height: 20px; /* 142.857% */
    display: flex;
    height: 36px;
    padding: 8px 4px;
    align-items: flex-start;
    flex-shrink: 0;
    &:hover:after {
      content: unset;
    }
  }
  .active {
    &:after,
    &:hover:after {
      content: '';
    }
  }
}
